import request from "@/utils/request";
export function insertRoleMenu(data) {
  return request({
    url: "/role-menu/insert",
    method: "post",
    data: data
  });
}
export function updateRoleMenu(data) {
  return request({
    url: "/role-menu/update",
    method: "post",
    data: data
  });
}
export function deleteRoleMenu(data) {
  return request({
    url: "/role-menu/delete",
    method: "post",
    data: data
  });
}
export function deletesRoleMenu(data) {
  return request({
    url: "/role-menu/deletes",
    method: "post",
    data: data
  });
}
export function enableRoleMenu(data) {
  return request({
    url: "/role-menu/enable",
    method: "post",
    data: data
  });
}
export function enablesRoleMenu(data) {
  return request({
    url: "/role-menu/enables",
    method: "post",
    data: data
  });
}
export function disableRoleMenu(data) {
  return request({
    url: "/role-menu/disable",
    method: "post",
    data: data
  });
}
export function disablesRoleMenu(data) {
  return request({
    url: "/role-menu/disables",
    method: "post",
    data: data
  });
}
export function viewRoleMenu(params) {
  return request({
    url: "/role-menu/view",
    method: "get",
    params: params
  });
}
export function pageRoleMenu(params) {
  return request({
    url: "/role-menu/page",
    method: "get",
    params: params
  });
}
export function searchRoleMenu(params) {
  return request({
    url: "/role-menu/search",
    method: "get",
    params: params
  });
}
